/* forkTest.c
 *	Simple program to test whether the VM works with the fork impelementaton or not.
 *	
 *  Expected Result: Each "matmult" should run till end correctly.
 *  Actual Result: Programs behaves as expected. Two new threads and a process is created and each "matmult" exits with correct status.
 * 	
 */

#include "syscall.h"

void forkedFunc(void) {
    Exec("../test/matmult");
    Exit(0);
}

void main() {
    Fork((void*) forkedFunc);
	Fork((void*) forkedFunc);
    Exit(0);
}
